<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="p" %>

<div class="f_l margin1" style="width:100%">
  <div style="height:24px;color:red" align="center" id="errorInfo">${failInfo }</div>
  <div style="height:24px;color:red;font-weight:bold" align="left">修改基础数据</div>
  <s:form id="submitForm" action="basicinfo!update" method="post" theme="simple">
  <table width="100%">
  	<tbody>
  		<tr>
  			<td width="6%"><s:text name="名称"/>：</td>
  			<td><input type="text" name="basicinfo.name" value="${basicinfo.name}" /></td>
  		</tr>
  		<tr>
  			<td><s:text name="类型"/>：</td>
  			<td>
  				<select name="basicinfo.type" id="basicinfo.type">
	              <option value="">-- 请选择 --</option>
	              <option value="0" <s:if test="%{basicinfo.type == 0}">selected="selected"</s:if>>功能</option>
	              <option value="1" <s:if test="%{basicinfo.type == 1}">selected="selected"</s:if>>剂型</option>
	              <option value="2" <s:if test="%{basicinfo.type == 2}">selected="selected"</s:if>>计量单位</option>
	              <option value="3" <s:if test="%{basicinfo.type == 3}">selected="selected"</s:if>>信息类别</option>
		        </select>
  			</td>
  		</tr>
  		<tr>
  			<td><s:text name="内容"/>：</td>
  			<td><input type="text" name="basicinfo.content" id="basicinfo.content" value="${basicinfo.content}" /></td>
  		</tr>
  		<tr>
  			<td><input type="submit" value="确认" onclick="return doValidate(event);" /></td>
  			<td><input type="button" value="取消" onclick="javascript:history.back(-1);"/></td>
  		</tr>
  	</tbody>
  </table>
          
  <input type="hidden" id="basicinfo.id" name="basicinfo.id" value="${basicinfo.id}">
  <input type="hidden" id="basicinfo.companyId" name="basicinfo.companyId" value="${basicinfo.companyId}">
  </s:form>
</div>
